/*
** zombie.c for zomzom in /home/goupil_r//GameInLab/zomzom/src
**
** Made by robin goupil
** Login   <goupil_r@epitech.net>
**
** Started on  Fri Nov 16 13:38:45 2012 robin goupil
** Last update Sun Nov 18 16:22:23 2012 robin goupil
*/

#include <stdlib.h>
#include "include/struct.h"
#include "include/player.h"
#include "include/zombie.h"
#include "include/my.h"

t_zombie	*create_zombie(t_sprite *sprite, t_vec *pos, int speed, int health)
{
  t_zombie	*zombie;

  zombie = xmalloc(sizeof(*zombie));
  zombie->biped = create_biped(sprite, pos, speed, health);
  zombie->prev = NULL;
  zombie->next = NULL;
  return (zombie);
}
